<!doctype html>
<html lang="en" xmlns:v-on="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>方法与事件处理器v-model</title>
</head>
<body>
    <div id="example-3">
        <span>Message is: {{ message }}</span>
        <br>
        <input type="text" v-model="message" placeholder="edit me">
        <input type="checkbox" v-model="checked" id="checkBox">
        <label for="checkBox">{{checked}}</label>
    </div>

<script src="../lib/vue.js"></script>
<script>
    var exampleVm = new Vue({
        el : "#example-3",
        data : {
            message : "hello Vue.js",
            checked : false
        }
    })
</script>
</body>
</html>